Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(streaming/messages): more robust event type construction #576

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

RobertCraigie
Copy link
Collaborator

previously, the helpers could crash if the API responded with a field that wasn't in the types yet, or if the property types didn't match which is not ideal.

thankfully I don't think anyone ever ran into this issue but this will result in the SDKs being much more future proof :)

previously, the helpers could crash if the API responded with a field
that wasn't in the types yet, or if the property types didn't match which
is not ideal
@RobertCraigie RobertCraigie marked this pull request as ready for review July 3, 2024 16:45
@RobertCraigie RobertCraigie requested a review from a team as a code owner July 3, 2024 16:45
@RobertCraigie RobertCraigie merged commit 0e50b4a into next Jul 3, 2024
@RobertCraigie RobertCraigie deleted the robert/more-robust-helpers branch July 3, 2024 16:45
@stainless-app stainless-app bot mentioned this pull request Jul 3, 2024
stainless-app bot pushed a commit that referenced this pull request Jul 8, 2024
previously, the helpers could crash if the API responded with a field
that wasn't in the types yet, or if the property types didn't match which
is not ideal
stainless-app bot pushed a commit that referenced this pull request Jul 10, 2024
previously, the helpers could crash if the API responded with a field
that wasn't in the types yet, or if the property types didn't match which
is not ideal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant